import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:flutter/material.dart';

class NormalMini2Button extends StatelessWidget {
  final String title;
  final VoidCallback onTap;

  const NormalMini2Button({Key key, this.title, this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: PressedOpacityButton(
        onPressed: onTap,
        disabledColor: aceGrayColor,
        color: aceBlueColor,
        borderRadius: BorderRadius.circular(getDp(5)),
        child: Container(
          height: getDp(36),
          width: getDp(75),
          alignment: Alignment.center,
          child: Text(
            title,
            style: TextStyle(
              color: Colors.white,
              fontSize: getSp(14),
              height: 20 / 14,
              fontWeight: FontWeight.w700,
            ),
          ),
        ),
      ),
    );
  }
}
